package com.common.logger;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public final class SysLogger {

	private static Log logger1 = LogFactory.getLog("sysLog1");

	private static Log logger2 = LogFactory.getLog("sysLog2");

	public static void infoToLog1(Object message) {
		logger1.info(message);
	}

	public static void debugToLog1(Object message) {
		logger1.debug(message);
	}

	public static void debugToLog1(Throwable e) {
		logger1.debug("debug : ", e);
	}

	public static void debugToLog1(Object message, Throwable e) {
		logger1.debug(message, e);
	}

	public static void errorToLog1(Object message) {
		logger1.error(message);
	}

	public static void errorToLog1(Throwable e) {
		logger1.error("error : ", e);
	}

	public static void errorToLog1(Object message, Throwable e) {
		logger1.error(message, e);
	}

	public static void fatalToLog1(Object message) {
		logger1.fatal(message);
	}

	public static void fatalToLog1(Throwable e) {
		logger1.fatal("fatal : ", e);
	}

	public static void fatalToLog1(Object message, Throwable e) {
		logger1.fatal(message, e);
	}

	public static void warnToLog1(Object message) {
		logger1.warn(message);
	}

	public static void warnToLog1(Throwable e) {
		logger1.warn("warn : ", e);
	}

	public static void warnToLog1(Object message, Throwable e) {
		logger1.warn(message, e);
	}

	public static void infoToLog2(Object message) {
		logger2.info(message);
	}

	public static void debugToLog2(Object message) {
		logger2.debug(message);
	}

	public static void debugToLog2(Throwable e) {
		logger2.debug("debug : ", e);
	}

	public static void debugToLog2(Object message, Throwable e) {
		logger2.debug(message, e);
	}

	public static void errorToLog2(Object message) {
		logger2.error(message);
	}

	public static void errorToLog2(Throwable e) {
		logger2.error("error : ", e);
	}

	public static void errorToLog2(Object message, Throwable e) {
		logger2.error(message, e);
	}

	public static void fatalToLog2(Object message) {
		logger2.fatal(message);
	}

	public static void fatalToLog2(Throwable e) {
		logger2.fatal("fatal : ", e);
	}

	public static void fatalToLog2(Object message, Throwable e) {
		logger2.fatal(message, e);
	}

	public static void warnToLog2(Object message) {
		logger2.warn(message);
	}

	public static void warnToLog2(Throwable e) {
		logger2.warn("warn : ", e);
	}

	public static void warnToLog2(Object message, Throwable e) {
		logger2.warn(message, e);
	}

}
